home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / clipper.exe / DEMO.PRG < prev    next >
Text File  |  1985-07-30  |  5KB  |  167 lines

  1. Set Date British
  2. Set Scoreboard Off
  3. Set Talk Off
  4. Set Bell Off
  5. Set Safety Off
  6. use clipwage
  7. inde on upper(name) to clipwage
  8. Set Function 2 To 'Do Demo;'
  9. Clear
  10. Do While .T.
  11.   Set Color To w+/
  12.   clear
  13.   @ 1,0 SAY "╔══════════════════════════════════════════════════════════════════════════════╗"
  14.   @ 2,0 SAY "║"
  15.   @ 2,79 SAY "║"
  16.   @ 3,0 SAY "╚══════════════════════════════════════════════════════════════════════════════╝"
  17.   @ 4,0 SAY "┌──────────────────────────────────────────────────────────────────────────────┐"
  18.   @ 5,0 SAY "│"
  19.   @ 5,79 SAY "│"
  20.   @ 6,0 SAY "│"
  21.   @ 6,79 SAY "│"
  22.   @ 7,0 SAY "│"
  23.   @ 7,79 SAY "│"
  24.   @ 8,0 SAY "│"
  25.   @ 8,79 SAY "│"
  26.   @ 9,0 SAY "│"
  27.   @ 9,79 SAY "│"
  28.   @ 10,0 SAY "│"
  29.   @ 10,79 SAY "│"
  30.   @ 11,0 SAY "│"
  31.   @ 11,79 SAY "│"
  32.   @ 12,0 SAY "│"
  33.   @ 12,79 SAY "│"
  34.   @ 13,0 SAY "│"
  35.   @ 13,79 SAY "│"
  36.   @ 14,0 SAY "│"
  37.   @ 14,79 SAY "│"
  38.   @ 15,0 SAY "│"
  39.   @ 15,79 SAY "│"
  40.   @ 16,0 SAY "│"
  41.   @ 16,79 SAY "│"
  42.   @ 17,0 SAY "│"
  43.   @ 17,79 SAY "│"
  44.   @ 18,0 SAY "│"
  45.   @ 18,79 SAY "│"
  46.   @ 19,0 SAY "├──────────────────────────────────────────────────────────────────────────────┤"
  47.   @ 20,0 SAY "│"
  48.   @ 20,79 SAY "│"
  49.   @ 21,0 SAY "└──────────────────────────────────────────────────────────────────────────────┘"
  50. *  RETURN
  51.  
  52.   Set Color To +gr/
  53.   @  2,8 Say 'dBASE-III and Clipper Demonstration Menu Version 2.10 (30/07/85)'
  54.   Set Color To +w/
  55.   @ 5,8  Say '╓─── Time Comparisons ────────╖'
  56.   Set Color To gr+/
  57.   @ 5,13 Say 'Time Comparisons'
  58.   Set Color To +w/
  59.   @  9,8  Say '╙─────────────────────────────╜'
  60.   @  9,42 Say '╙─────────────────────────────╜'
  61.   @  5,42 Say '╓─── File Handling ───────────╖'
  62.   Set Color To gr+/
  63.   @ 5,47 Say 'File Handling'
  64.   Set Color To +w/
  65.   @ 8,42 Say '║ F.                          ║'
  66.   @ 8,8  Say '║ C.                          ║'
  67.   @ 6,8  Say '║ A. Count 1000 Loops.        ║'
  68.   @ 7,8  Say '║ B. First 50 Fibonacci No.s. ║'
  69.   @ 6,42 Say '║ D. Append 200 Records.      ║'
  70.   @ 7,42 Say '║ E. Index  100 Records.      ║'
  71.   @ 11,25 Say '╓─── Miscellaneous ───────────╖'
  72.   Set Color To br/
  73.   @ 12,3 say  'Demonstration System  '
  74.   @ 13,3 say  ' written by P.Usher   '
  75.   @ 14,3 say  '    and I.Turner.     '
  76.   @ 13,56 say '   XAT.Software Ltd   '
  77.   @ 14,56 say '   ~~~~~~~~~~~~~~~~   '
  78.   @ 15,56 say ' The dBASE Specialists'
  79.   @ 16,56 say ' Support & Consultancy'
  80.   Set Color To +gr/
  81.   @ 11,30 Say 'Miscellaneous'
  82.   Set Color To +w/
  83.   @ 17,25 Say '║                             ║'
  84.   @ 18,25 Say '╙─────────────────────────────╜'
  85.   @ 13,25 Say '║                             ║'
  86.   @ 14,25 Say '║                             ║'
  87.   @ 12,25 Say '║                             ║'
  88.   @ 15,25 Say '║                             ║'
  89.   @ 16,25 Say '║                             ║'
  90.   Set Color To +w/g
  91.   @ 6,9 Say ' A. Count 1000 Loops.        '
  92.   @ 8,9 Say ' C. Skip & Display Field.    '
  93.   @ 7,9 Say ' B. First 50 Fibonacci No.s. '
  94.   Set Color To +w/b
  95.   @ 6,43 Say ' D. Append 100 Records.      '
  96.   @ 8,43 Say ' F. Dummy Application.       '
  97.   @ 7,43 Say ' E. Index  100 Records.      '
  98.   Set Color To +w/r
  99.   @ 12,26 Say ' G. Create "n" Variables.    '
  100.   @ 17,26 Say ' X. Exit Demonstration.      '
  101.   @ 14,26 Say '                             '
  102.   @ 15,26 Say ' J. Run Command Test.        '
  103.   @ 13,26 Say ' H. CLIPPER Special Features '
  104.   @ 16,26 Say ' K. SET RELATION Example.    '
  105.   Close Data
  106.   Respmen = ' '
  107.   Do While .not. Respmen$'ABCDEFGHJKX'
  108.     Set Color to gr+/,w+/gr
  109.     @ 20,10 Say 'Please enter option .. [ "A" - "K" or "X" ] ' Get Respmen Pict '!'
  110.     Read
  111.     If .not. Respmen$'ABCDEFGHJKX'
  112.       * PROCEDURE ERROR
  113.       *  Parameters Line,Col,Message
  114.       Message = ' ══ '+'Invalid Option' + ' '
  115.       fin = val(substr(time(),7,2))+3
  116.       if fin > 59
  117.         fin = fin - 60
  118.       endif
  119.       set color to */w
  120.       @ 20,56 say Message
  121.       do while fin > val(substr(time(),7,2))
  122.       enddo
  123.       set color to w/,/w
  124.       @ 20,56 say space(len(Message))
  125.       * return
  126.     Endif [ Display Error Message .. Procedure Error ]
  127.   Enddo [ Select Menu Option ]
  128.   Clear Gets
  129.   If Respmen = 'X'
  130.     @ 20,10 say Space(60)
  131.     Conf = ' '
  132.     Do While .not. Conf$'YN'
  133.       @ 20,10 say 'Are you sure you want to Exit the Demonstration ? (Y/N) ' Get Conf Pict '!'
  134.       Read
  135.     Enddo
  136.     If Conf = 'N'
  137.       Loop
  138.     Endif
  139.     Exit
  140.   Endif [ Exit The System ]
  141.   Do Case
  142.     Case Respmen ='A'
  143.       Do DeLoop
  144.     Case Respmen ='B'
  145.       Do DeFib
  146.     Case Respmen ='C'
  147.       Do Deskip
  148.     Case Respmen ='D'
  149.       Do DeAppend
  150.     Case Respmen ='E'
  151.       Do DeIndex
  152.     Case Respmen ='F'
  153.       Do Clipmenu
  154.     Case Respmen ='G'
  155.       Do DeCrVar
  156.     Case Respmen ='H'
  157.       Do DeFeat
  158.     Case Respmen ='J'
  159.       Do DeRun
  160.     Case Respmen ='K'
  161.       Do Relate2
  162.   EndCase
  163. Enddo
  164. Set Color To w/,/w
  165. @ 23,0
  166. return
  167.